#!/usr/bin/env ruby

LKP_SRC = ENV['LKP_SRC'] || File.direname(File.dirname(File.realpath($PROGRAM_NAME)))
require "#{LKP_SRC}/lib/tests/stats"
stats = LKP::Stats.new

while (line = $stdin.gets)
  case line
  when /^(ext4-frags).*(pass)/
    stats.add_test_result line, $1, $2
  end
end

stats.dump
